import type { RequestBody as AlovaRequestBody } from 'alova'

export type RequestBody = AlovaRequestBody | undefined

export type ResponseBody<T> = {
  code: number
  data: T
  msg?: string
}

export enum ResponseStatus {
  SUCCESS = 200,
  SERVER_ERROR = 500,
  NOT_FOUND = 404,
  UNAUTHORIZED = 403
}

export enum ResponseCode {
  SUCCESS = 0
}
